package ui.panels.primary.games;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;

import javax.swing.JList;


/**
 * @author vladimir && alon
 *
 */
/*class MouseListener extends MouseAdapter{
  protected JList jlist = null;;
  private GamesPanel gamesPanel = null;
  
  public MouseListener(GamesPanel panel, JList l){
	  this.gamesPanel = panel;
	  jlist = l;
   }
    

  public void mouseClicked(MouseEvent e){
   if(e.getClickCount() == 2){
	   int index = jlist.locationToIndex(e.getPoint());
	   
	   // call to function that do the rest
	   gamesPanel.executeListGame(jlist, index + 1);
     }
   }
}
*/